home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / print.idb / usr / share / catman / a_man / cat1 / modinfofltr.z / modinfofltr
Encoding:
Text File  |  1997-07-30  |  5.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))                 PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                 MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      modinfofltr - format and filter the /var/spool/lp/modelinfo.dat file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_hhhh
  13.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e
  14.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e _----_vvvv <_v_e_n_d_o_r__n_u_m_b_e_r>
  15.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr _----_llll _i_o__t_y_p_e _----_vvvv <_v_e_n_d_o_r__n_u_m_b_e_r> _----_xxxx <_p_r_i_n_t_e_r__m_o_d_e_l>
  16.  
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is used to parse the data found in the file
  20.      /var/spool/lp/modelinfo.dat.  (See the _m_o_d_e_l_i_n_f_o(_1_m) man page for
  21.      information about the modelinfo.dat file.)  _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr reads input from
  22.      standard in and writes to standard out.
  23.  
  24.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is used by various script files to present a menu of printer
  25.      choices for the user to select.
  26.  
  27.  
  28. UUUUSSSSAAAAGGGGEEEE
  29.      ----hhhh        Display a help message.
  30.  
  31.  
  32.      ----llll _i_o__t_y_p_e
  33.                Specify the printer IO type to be parsed.  Valid choices are:
  34.                CENTRONICS, SERIAL, NETPRINTER, or SCSI.  If invoked with just
  35.                the ----llll option _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr will generate a numbered list of the
  36.                printer vendor names that have installed printer drivers that
  37.                support the requested IO type.  See the examples below.
  38.  
  39.  
  40.      ----vvvv _v_e_n_d_o_r__n_u_m_b_e_r
  41.                Specify the vendor to use.  _v_e_n_d_o_r__n_u_m_b_e_r is the vendor number
  42.                from the numbered list generated when ----llll was used. ----llll is
  43.                required when ----vvvv is used.  The output will be a numbered list
  44.                of printer model.
  45.  
  46.  
  47.      ----cccc _p_r_i_n_t_e_r__m_o_d_e_l
  48.                Specify the printer model to use.  _p_r_i_n_t_e_r__m_o_d_e_l is the printer
  49.                model from the numbered list generated when ----llll ----vvvv was used.
  50.                The options ----llll and ----vvvv are required when ----cccc is used.  The output
  51.                will be a one line entry from the modelinfo.dat file that
  52.                describes the printer in detail.
  53.  
  54.  
  55. EEEEXXXXAAAAMMMMPPPPLLLLEEEE::::
  56.      List all vendors that support a centronics interface:
  57.  
  58.      /usr/lib/print/modinfofltr -l CENTRONICS  < ~lp/modelinfo.dat
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))                 PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                 MMMMOOOODDDDIIIINNNNFFFFOOOOFFFFLLLLTTTTRRRR((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      Produces:
  75.  
  76.       1. GENERIC
  77.       2. AUTOLOGIC
  78.       3. EPSON
  79.       4. GENERIC
  80.       5. GENICOM
  81.       6. HP
  82.       7. LEXMARK
  83.       8. QMS
  84.  
  85.      List the Lexmark printer models for which there is an available driver.
  86.      The ----vvvv argument (7) comes from the previous menu.
  87.  
  88.      /usr/lib/print/modinfofltr -l CENTRONICS -v 7  < ~lp/modelinfo.dat
  89.  
  90.      Produces:
  91.  
  92.       1. LEXMARK 4079+ POSTSCRIPT
  93.       2. LEXMARK OPTRA C POSTSCRIPT
  94.       3. LEXMARK OPTRA L/LX/LXI
  95.       4. LEXMARK OPTRA N POSTSCRIPT
  96.       5. LEXMARK OPTRA PLUS POSTSCRIPT
  97.       6. LEXMARK OPTRA R/RX
  98.  
  99.      Get the modelinfo.dat entry for the Lexmark Optra N printer:
  100.  
  101.      /usr/lib/print/modinfofltr -l CENTRONICS -v 8 -c 4 < ~lp/modelinfo.dat
  102.  
  103.      Produces:
  104.  
  105.       lexmarkoptran_model%CENTRONICS%Lexmark Optra N PostScript%FACEUP=0
  106.  
  107.      which is then used by various shell script to install the printer driver.
  108.  
  109.      _mmmm_oooo_dddd_iiii_nnnn_ffff_oooo_ffff_llll_tttt_rrrr is not intended for general use.  To install a printer use
  110.      the Printer Manager tool or the mkcentpr(1M), mknetpr(1M), mkserialpr(1M)
  111.      or mkscsipr(1M) shell scripts.
  112.  
  113.  
  114.  
  115. FFFFIIIILLLLEEEESSSS
  116.      /usr/lib/print/modinfofltr
  117.      /var/spool/lp/modelinfo.dat
  118.  
  119.  
  120. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  121.      modelinfo(1M), mknetpr(1M), mkcentpr(1M), mkserialpr(1M), mkscsipr(1M),
  122.      mkjtpr(1M)
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.